<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript">
	/* 	var name = new Object; */
		//小写                   //大写
		/* var div=document.createElement('div');
		div.style.width='100px';
		div.style.height='100px';
		div.style.backgroundColor='red';
		document.body.appendChild(div);
		 */
		var windowWidth=window.screen.width;
		var windowHeight=window.screen.height;
		function createRound(radius){
			var red=Math.floor(Math.random()*256);
			var green=Math.floor(Math.random()*256);
			var blue=Math.floor(Math.random()*256);
			var div=document.createElement('div');
			div.style.width=radius+'px';
			div.style.height=radius+'px';
			div.style.position='absolute';
			div.style.backgroundColor='rgb('+red+','+green+','+blue+')';
			div.style.borderRadius='50%';
			div.style.left=windowWidth*Math.random()+'px';
			div.style.top=windowHeight*Math.random()+'px';
			document.body.appendChild(div);//
		}
		
		for(var i=0; i<10; i++){
			createRound(Math.floor(Math.random()*222));//
		}
		
	</script>
</body>
</html>